//~ Project: TheGenerator File: IndexViewGenerator.groovy Created date: Oct 21, 2011
package com.ii2d.tg.generators

import org.springframework.util.Assert

/**
 * View生成器
 * @author d
 * @since Oct 26, 2011
 */
class ViewGenerator extends Generator {
	
	@Override
	protected void init() {
		super.init()
		Assert.hasText this.getDestDir(), "Property [destDir] can not be empty."
		println node
		//TODO 子属性生成怎么解决？
		
	}

	@Override
	protected void preGenerate(StringBuffer sb) {
		// TODO Auto-generated method stub
		super.preGenerate(sb);
	}
	
	@Override
	public void doGenerate(StringBuffer sb) {
		println destDir
		
	}

	@Override
	protected void postGenerate(StringBuffer sb) {
		// TODO Auto-generated method stub
		super.postGenerate(sb);
	}

}
